﻿<%@ Page Title="Rel. de Turmas" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="RelatorioControleTurmas.aspx.cs" Inherits="AcadPosApp.Relatorios.RelatorioControleTurmas" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        .style8
        {
            width: 315px;
        }
        .style10
        {
            width: 307px;
        }
        .style11
        {
            width: 310px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlDadosConsulta" runat="server" GroupingText="Dados da Consulta">
                <table class="form-inline">
                    <tr>
                        <td class="style11">
                            Áreas de Conhecimento
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style11">
                            <asp:DropDownList ID="ddlAreaConhecimento" runat="server" Width="300px" AutoPostBack="True"
                                OnSelectedIndexChanged="ddlAreaConhecimento_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style11">
                            Descrição
                            <!-- <asp:RequiredFieldValidator ID="requiredPesquisa" runat="server" 
                                ControlToValidate="txtPesquisa" 
                                ErrorMessage="É necessário preencher o campo pesquisa!" ForeColor="Red" 
                                SetFocusOnError="True" ValidationGroup="pesquisa">*</asp:RequiredFieldValidator> -->
                        </td>
                        <td style="font-weight: 700">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style11">
                            <asp:TextBox ID="txtPesquisa" runat="server" MaxLength="250" Width="300px" 
                                required="required"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnConsultar" runat="server" OnClick="btnConsultar_Click"
                                Text="Consultar" ValidationGroup="pesquisa" Width="100px" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvwPesquisa" runat="server" AutoGenerateColumns="False" CssClass="mGrid"
                    DataKeyNames="ID_CURSO" EmptyDataText="Dados não localizados..." GridLines="Vertical"
                    Width="45%" OnRowDataBound="gvwPesquisa_RowDataBound" AllowPaging="True" OnPageIndexChanging="gvwPesquisa_PageIndexChanging"
                    OnSelectedIndexChanged="gvwPesquisa_SelectedIndexChanged">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" ShowSelectButton="True">
                            <ItemStyle Width="1%" />
                        </asp:CommandField>
                        <asp:BoundField DataField="ID_CURSO" HeaderText="Código">
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DESCRICAO" HeaderText="Cursos">
                            <ItemStyle HorizontalAlign="Left" Width="75%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <asp:Image ID="imgStatus" runat="server" Height="25px" Width="25px" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="SITUACAO" HeaderText="Situação">
                            <ItemStyle Width="10%" HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
                <table class="form-inline">
                    <tr>
                        <td>
                            Currículo
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DropDownList ID="ddlCurriculoPesquisa" runat="server" AutoPostBack="True" Enabled="false"
                                OnSelectedIndexChanged="ddlCurriculoPesquisa_SelectedIndexChanged" Width="200px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Situação
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DropDownList ID="ddlSituacao" runat="server" Width="200px">
                                <asp:ListItem Value="T">Todas</asp:ListItem>
                                <asp:ListItem Value="E">Em Andamento</asp:ListItem>
                                <asp:ListItem Value="N">Não Iniciada</asp:ListItem>
                                <asp:ListItem Value="C">Concluída</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td class="style10">
                            Estado
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style10">
                            <asp:DropDownList ID="ddlEstadoPesquisa" runat="server" OnSelectedIndexChanged="ddlEstadoPesquisa_SelectedIndexChanged"
                                Width="200px" AutoPostBack="True">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style10">
                            Polo
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <tr>
                            <td class="style10">
                                <asp:DropDownList ID="ddlPoloPesquisa" runat="server" Enabled="False" Width="300px"
                                    AutoPostBack="True" 
                                    OnSelectedIndexChanged="ddlPoloPesquisa_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:Button ID="btnImprimir" runat="server" OnClick="btnImprimir_Click" 
                                    Text="Imprimir" Width="100px" />
                                &nbsp;
                            </td>
                        </tr>
                    </tr>
                </table><br />
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnImprimir" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
